package com.frxuexi.park2302.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.frxuexi.lib_base.mvi.BaseViewActivity
import com.frxuexi.park2302.R
import com.frxuexi.park2302.databinding.ActivityParkVractivityBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView

@Route(path = "/app/ParkVRActivity")
class ParkVRActivity : BaseViewActivity<ActivityParkVractivityBinding>() {
    override val binding: ActivityParkVractivityBinding by lazy { ActivityParkVractivityBinding.inflate(layoutInflater) }

    override fun initData() {

    }

    override fun initView() {
        val options = VrPanoramaView.Options()
        options.inputType=VrPanoramaView.Options.TYPE_MONO
        binding.parkVr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources,R.drawable.ddd)),options)
    }

}